package domain;
/*
    数据层
    Exwife的对象表示一个前妻姐信息
 */

public class Exwife {
    //姓名	年龄	 电话     家庭地址     身高    体重
    private String name;
    private int age;
    private String phone;
    private String address;
    private int height;
    private int weight;

    //构造器
    public Exwife(String name, int age, String phone, String address, int height, int weight) {
        this.name = name;
        this.age = age;
        this.phone = phone;
        this.address = address;
        this.height = height;
        this.weight = weight;
    }

    //set and get
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }

    public double getHeight() {
        return height;
    }
    public void setHeight(int height) {
        this.height = height;
    }

    public double getWeight() {
        return weight;
    }
    public void setWeight(int weight) {
        this.weight = weight;
    }

    //toString()方法用于返回前妻姐信息
    @Override
    public String toString() {
        return name +
                "\t" + age +
                "\t"+  phone +
                "\t" + address +
                "\t" + height +
                "\t" + weight ;
    }
}
